package com.zhijiaoyun.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author shisfish
 * @date 2017/6/6
 */
public class CourseView implements Serializable {
	private static final long serialVersionUID = 4501648370388040407L;

	private Long viewId;

    private Long courseId;

    private Integer type;

    private Date createTime;

    private Long userId;

    private String ip;

    public CourseView() {
		super();
	}

	public CourseView(Long courseId, Integer type, Long userId, String ip) {
		super();
		this.courseId = courseId;
		this.type = type;
		this.createTime = new Date();
		this.userId = userId;
		this.ip = ip;
	}

	public Long getViewId() {
        return viewId;
    }

    public void setViewId(Long viewId) {
        this.viewId = viewId;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip == null ? null : ip.trim();
    }
}